/*
 * @Author: your name
 * @Date: 2020-08-03 12:00:49
 * @LastEditTime: 2020-08-03 20:06:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cms-serverd:\NZ_2001\线下三阶段\threeJD\vue\vue-cli\vue-mall\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'
import Frients from '../views/Frients'
import Cart from '../views/Cart'
import Search from '../views/Search'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/frients',
    component: Frients
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path: '/search',
    component: Search
  }

]

const router = new VueRouter({
  routes
})

export default router
